#include <iostream>
#include <algorithm>
#include <string>
#include <cstdio>
#include <vector>
#include <stack>
#include <queue>
#include <set>
using namespace std;
class Solution
{
public:
    static bool cmp(int a, int b)
    {
        return (a % 2 == 1) && (b % 2 == 0);
    }
    vector<int> exchange(vector<int> &nums)
    {
        sort(nums.begin(), nums.end(), cmp);
        return nums;
    }
};